package com.luban.fox.security01.service.impl;

import com.luban.fox.security01.bean.SysPermission;
import com.luban.fox.security01.mapper.SysPermissionMapper;
import com.luban.fox.security01.service.SysPermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysPermissionServiceImpl implements SysPermissionService {

    @Autowired
    private SysPermissionMapper sysPermissionMapper;



    @Override
    public List<SysPermission> selectListByPath(String requestUrl) {
        return sysPermissionMapper.selectListByPath(requestUrl);
    }

    @Override
    public List<SysPermission> selectListByUser(Integer id) {
        return sysPermissionMapper.selectListByUser(id);
    }
}
